ARG BASE_IMAGE=mysql:8.0
FROM ${BASE_IMAGE}
MAINTAINER yanghl
EXPOSE 3306
ENV MYSQL_ROOT_PASSWORD root
ENV MYSQL_DATABASE	nacos
ENV TEST_WEBHOOK test1
ENV TEST_WEBHOOK version
ENV TEST_WEBHOOK test2222
ENV TEST_WEBHOOK test2222312
VOLUME /var/lib/mysql
COPY ./mysql-schema.sql /docker-entrypoint-initdb.d/mysql-schema.sql
CMD ["mysqld"]